<div id="editRoomModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">修改房屋</h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">房屋ID</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.roomId" disabled="disabled"
                                        type="text" placeholder="必填，请填写房屋编号" class="form-control"></div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">房屋编号</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.roomNum" type="text"
                                        placeholder="必填，请填写房屋编号" class="form-control"></div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">房屋楼层</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.layer" type="number"
                                        placeholder="必填，请填写房屋楼层" class="form-control"></div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">房屋单元</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editRoomInfo.unitId">
                                        <option selected disabled value="">必填，请选择单元</option>
                                        <option v-for="(unit,index) in editRoomUnits" :key="index"
                                            v-bind:value="unit.unitId">{{unit.unitNum}}单元</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">房屋户型</label>
                                <div class="col-sm-5" style="display: inline">
                                    <select class="custom-select" v-model="editRoomInfo.apartment1">
                                        <option selected value="">必填，请选择房屋户型</option>
                                        <option value="10">一室</option>
                                        <option value="20">两室</option>
                                        <option value="30">三室</option>
                                        <option value="40">四室</option>
                                        <option value="50">五室</option>
                                        <option value="60">六室</option>
                                        <option value="70">七室</option>
                                        <option value="80">八室</option>
                                    </select>
                                </div>
                                <div class="col-sm-5" style="display: inline">
                                    <select class="custom-select" v-model="editRoomInfo.apartment2">
                                        <option selected value="">必填，请选择房屋户型</option>
                                        <option value="101">一厅</option>
                                        <option value="102">两厅</option>
                                        <option value="103">三厅</option>
                                        <option value="104">四厅</option>
                                        <option value="105">五厅</option>
                                        <option value="106">六厅</option>
                                        <option value="107">七厅</option>
                                        <option value="108">八厅</option>

                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">建筑面积</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.builtUpArea" type="number"
                                        placeholder="必填，请填写房屋建筑面积! 平方" class="form-control"></div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">算费系数</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.feeCoefficient" type="text"
                                        placeholder="请填写算费系数" class="form-control"></div>
                            </div>
                            <div class="form-group row"  v-if="editRoomInfo.state != '2002'">
                                <label class="col-sm-2 col-form-label">房屋状态</label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="editRoomInfo.state">
                                        <option selected value="">必填，请选择房屋状态</option>
                                        <option value="2001">已入住</option>
                                        <option value="2003">已交房</option>
                                        <option value="2005">已装修</option>
                                        <option value="2004">未入住</option>
                                    </select>
                                </div>
                            </div>
                            <div v-for="(item,index) in editRoomInfo.attrs">
                                <div class="form-group row" v-if="item.specType == '2233'">
                                    <label class="col-sm-2 col-form-label">{{item.specName}}</label>
                                    <div class="col-sm-10">
                                        <input v-model="item.value" type="text" :placeholder="item.specHoldplace"
                                            class="form-control">
                                    </div>
                                </div>

                                <div class="form-group row" v-if="item.specType == '3344'">
                                    <label class="col-sm-2 col-form-label">{{item.specName}}</label>
                                    <div class="col-sm-10">
                                        <select class="custom-select" v-model="item.value">
                                            <option selected disabled value="">{{item.specHoldplace}}</option>
                                            <option v-for="value in item.values" :label="value.valueName"
                                                :value="value.value">
                                                {{item.valueName}}
                                            </option>

                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label">备注</label>
                                <div class="col-sm-10"><input v-model="editRoomInfo.remark" type="text"
                                        placeholder="请填写备注信息" class="form-control"></div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button" v-on:click="editRoom()"><i
                                        class="fa fa-check"></i>&nbsp;保存</button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                    data-dismiss="modal">取消</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>